home *** CD-ROM | disk | FTP | other *** search
- var ketkpin = {
- onLoad: function() {
- // initialization code
- this.initialized = true;
- this.strings = document.getElementById("ketkpin-strings");
- },
-
- onMenuItemCommand: function(e) {
- var my_url=window.content.location.href;
- //alert(my_url);
- window.content.location.href="http://ketkp.in/index-exp.php?url="+escape(my_url);
- // window.location="http://ketkp.in/index-exp.php?url="+escape(myurl);
- },
- onMenuItemCommand2: function(e) {
- var my_url=window.content.location.href;
- var my_custom=prompt("Masukkan Nama TKP yang di inginkan (contoh: url_imut69)");
- //alert(my_custom);
- window.content.location.href="http://ketkp.in/index-exp.php?url="+escape(my_url)+"&custom_name="+escape(my_custom);
- // window.location="http://ketkp.in/index-exp.php?url="+escape(myurl);
- },
- onMenuItemCommand3: function(e) {
- var my_url=gContextMenu.getLinkURL();
- window.content.location.href="http://ketkp.in/index-exp.php?url="+escape(my_url);
- },
-
- onMenuItemCommand4: function(e) {
- var my_url=gContextMenu.getLinkURL();
- var my_custom=prompt("Masukkan Nama TKP yang di inginkan (contoh: url_imut69)");
- //alert(my_custom);
- window.content.location.href="http://ketkp.in/index-exp.php?url="+escape(my_url)+"&custom_name="+escape(my_custom);
- // window.location="http://ketkp.in/index-exp.php?url="+escape(myurl);
- },
-
- onToolbarButtonCommand: function(e) {
- // just reuse the function above. you can change this, obviously!
- ketkpin.onMenuItemCommand(e);
- }
- };
-
- window.addEventListener("load", ketkpin.onLoad, false);
-